'''
计算器类，类里面有四个方法：加减乘除四个运算，每个方法传入两个参数，每个方法把计算结果进行返回
'''
class Count:
    def __init__(self,x,y):
        self.x = x
        self.y = y

    def Add(self):
        return self.x + self.y

    def Subtract(self):
        return self.x - self.y

    def Multiply(self):
        return self.x * self.y

    def Divide(self):
        return self.x / self.y

pre = Count(1,2)
result1 = pre.Add()
result2 = pre.Subtract()
result3 = pre.Multiply()
result4 = pre.Divide()
print('加{}，减{}，乘{}，除{}'.format(result1,result2,result3,result4))